#!/usr/bin/env node

function Bomm(name){
    this.message='bomb';
    this.name = name;
}
Bomm.prototype.explode = function(){
    console.log(this.name +' is '+ this.message);
};
var b1 = new Bomm('b1');
var b2 = new Bomm('b2');
setTimeout(b1.explode.bind(b1),3000);
var timer = setTimeout(b2.explode.bind(b2),3000);
b2.clear = function(){
    clearTimeout(timer);
};
setTimeout(b2.clear.bind(b2),1000);
